﻿using System;
using DBA.Common;
using System.Collections;
using System.Collections.Generic;

namespace DBA.Model
{
    /// <summary>
    ///功能描述    :    Student
    ///开发者      :    
    ///建立时间    :    2012-08-22 13:49:28
    ///修订描述    :    
    ///进度描述    :    
    ///版本号      :    1.0
    ///最后修改时间:    2012-08-22 13:49:28
    /// </summary>
        [OrmPropertyAttribute(TableName = "Student",PrimaryKey = "Id",PrimaryKeyType = "IDENTITY",ParameterType = "int")]
    public class Student
    {
        #region 构造函数
        public Student(){}
        
        public Student(int id,int EmployeeID,DateTime Birthday,short Sex,string Name,DateTime InSchoolTime,DateTime GranduateTime,string OutSpecialty,string Degree,string PaperSubject)
        {
           this._id = id;
           this._EmployeeID = EmployeeID;
           this._Birthday = Birthday;
           this._Sex = Sex;
           this._Name = Name;
           this._InSchoolTime = InSchoolTime;
           this._GranduateTime = GranduateTime;
           this._OutSpecialty = OutSpecialty;
           this._Degree = Degree;
           this._PaperSubject = PaperSubject;

        }
        #endregion
        
        #region 成员
        private int _id;
        private int _EmployeeID;
        private DateTime _Birthday;
        private short _Sex;
        private string _Name;
        private DateTime _InSchoolTime;
        private DateTime _GranduateTime;
        private string _OutSpecialty;
        private string _Degree;
        private string _PaperSubject;
        #endregion
        
        #region 属性
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int",ParameterLength = 4,IsNull = "0")]
        public virtual int Id
        {
            get { return _id; }
            set { _id = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int",ParameterLength = 4,IsNull = "1")]
        public virtual int EmployeeID
        {
            get { return _EmployeeID; }
            set { _EmployeeID = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "datetime",ParameterLength = 16,IsNull = "1")]
        public virtual DateTime Birthday
        {
            get { return _Birthday; }
            set { _Birthday = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "smallint",ParameterLength = 2,IsNull = "1")]
        public virtual short Sex
        {
            get { return _Sex; }
            set { _Sex = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "nvarchar",ParameterLength = 40,IsNull = "1")]
        public virtual string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "datetime",ParameterLength = 16,IsNull = "1")]
        public virtual DateTime InSchoolTime
        {
            get { return _InSchoolTime; }
            set { _InSchoolTime = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "datetime",ParameterLength = 16,IsNull = "1")]
        public virtual DateTime GranduateTime
        {
            get { return _GranduateTime; }
            set { _GranduateTime = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "nvarchar",ParameterLength = 60,IsNull = "1")]
        public virtual string OutSpecialty
        {
            get { return _OutSpecialty; }
            set { _OutSpecialty = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "nvarchar",ParameterLength = 20,IsNull = "1")]
        public virtual string Degree
        {
            get { return _Degree; }
            set { _Degree = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "nvarchar",ParameterLength = 200,IsNull = "1")]
        public virtual string PaperSubject
        {
            get { return _PaperSubject; }
            set { _PaperSubject = value; }
        }
        #endregion
    }
}